import { $get } from '@js/request'
import { ArbitratorStatisticSchema } from '@src/components/schema/arbitrator'

export async function getListQuest (d: { [k: string]: any }): Promise<{ list: ArbitratorStatisticSchema[], total: number }> {
  const res = await $get('/api/commission/arbitrator/casestat', d)
  const list: ArbitratorStatisticSchema[] = res.data.list
  list.forEach((li, i) => {
    li.orderno = (d.page - 1) * d.limit + i + 1
  })
  return res.data
}
